//
//  CXDestinationModel.m
//  Travel
//
//  Created by dllo on 15/11/29.
//  Copyright © 2015年 doll. All rights reserved.
//

#import "CXDestinationModel.h"

@implementation CXDestinationModel


- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"data"]) {
        _arr_data = value;
    }

    if ([key isEqualToString:@"id"]) {
        if ([[value class] isSubclassOfClass:[NSNumber class]]) {
            self.poiID = value;
            self.valueId = [NSString stringWithFormat:@"%@", value];
        }
        else
        {
            self.poiID = value;
            self.valueId = value;
        }
    }
    
}



@end
